package com.pi.base.service;

import java.util.List;

import com.pi.base.common.BaseResult;
import com.pi.base.entity.SysMenu;
import com.pi.base.entity.SysMenuExample;

public interface ISysMenuService {
	
	public SysMenu sysMenuInfoById(int sysMenuId) throws Exception;
	
	public BaseResult delParentMenu(int parentMenuId) throws Exception;
	
	public void insertSysMenu(SysMenu sysMenu) throws Exception;
	
	public int countSysMenuByCode(String urlCode) throws Exception;

	/**
	 * 根据菜单ID，查找其及其子菜单的列表。
	 * 
	 * @param id
	 * @return
	 */
	public List<SysMenu> getMenuListByParentId(int id) throws Exception;
	/**
	 * 超级管理员查询全部level=2的菜单
	 * @return
	 * @throws Exception
	 */
	public List<SysMenu> getAllMenuListLevel2()  throws Exception;
	/**
	 * 根据条件查找菜单列表。
	 * @param example
	 * @return
	 * @throws Exception
	 */
	public List<SysMenu> getMenuListByExample(SysMenuExample example) throws Exception;
	
}
